/**
 * 
 */
package com.remoteapp.networking;

/**
 * An interface to get connection information of a client
 * 
 * @author Jonas Spitzenpfeil
 * 
 */
public interface ClientReceiver {

	/**
	 * This method is called from a client when the client is connected to a
	 * server
	 * 
	 * @param ipAddress
	 *            The IP address of the server that is connected
	 */
	public void connectedToServer(String ipAddress);

	/**
	 * This method is called from a client when the client is disconnected from
	 * a server
	 * 
	 * @param ipAddress
	 *            The IP address of the server that is disconnected
	 */
	public void disconnectedFromServer(String ipAddress);

	/**
	 * This method is called when a client loses the connection to a server
	 * 
	 * @param ipAddress
	 *            The IP address were the connection has been lost
	 */
	public void lostConnection(String ipAddress);

	/**
	 * This method is called when a client receives a message from a server
	 * 
	 * @param line
	 *            The line that has been received by the client
	 */
	public void lineReceived(String line);
}
